<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Types 测试
 */
class IOSS_Order_Test extends CI_Controller {

	function __construct(){
		parent::__construct();
		if(ENVIRONMENT == 'production' ){
			exit('enviroment is production');
		}
		$this->load->library('unit_test');
		$this->unit->use_strict(true);
	}
	
	function index(){
		$order1 = IOSS_Order::getById(1);
		$order2 = IOSS_Order::getByNo('orderno3333');
		var_dump($order1, $order2);
		
		$list = IOSS_Order::getList(array('user_id'=>3));
		var_dump($list);
		
		echo $this->unit->report();
	}
	
}